import fs from 'fs';

function fsWrite(data: any, filePath: string) {
    fs.writeFile(filePath, data, (err: any) => {
        if (err) throw err;
        console.log('Data written to data.json');
    })
}

export default fsWrite
